package com.snopy.designPattern.create.prototype;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author snopy
 * @version 1.0.0
 * @classname Order
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/01 21:41
 */
@Setter
@Getter
public class Order implements Cloneable{

    private Date orderTime;
    private Double total;

    @Override
    public String toString() {
        return "Order{" +
                "orderTime=" + orderTime +
                ", total=" + total +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
